package com.zkzx.wlhy.adaptor.clinet.driver;

import com.zkzx.wlhy.adaptor.clinet.ResultVO;
import com.zkzx.wlhy.adaptor.config.feign.FeignConfiguration;
import com.zkzx.wlhy.adaptor.controller.driver.param.DriverDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * 北京中科智兴物联科技有限公司 @版权所有
 *
 * @Author: zhaoyihe@zkraising.com
 * @Date: 2021/05/20/13:30
 * @Description:
 */
@FeignClient(name = "WLHY-DRIVER",url = "${wh.website}",configuration = FeignConfiguration.class)
public interface DriverClient {

    @GetMapping("/push/driver/getDriver")
    ResultVO getDriver(@RequestParam("name") String name, @RequestParam("idCard") String  idCard);

    @PostMapping("/push/driver/addDriver")
    ResultVO add(@RequestBody @Valid DriverDTO driverDTO);


    @GetMapping("/push/driver/getDriverState")
    ResultVO<String> getStatus(@RequestParam("id") String  id);



}
